package com.lyj.sc.Test;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.stream.IntStream;

/**
 * @program: code-random
 * @description:
 * @author: lyj
 * @create: 2022-07-04 13:09
 * @version: 1.0
 * @Modifier By:
 **/
@RestController
public class TestController {
    @GetMapping("wrong")
    public int wrong(@RequestParam(value = "count", defaultValue = "1000000") int count){
        Data.reset();
//多线程循环一定次数调用Data类不同实例的wrong方法
        return Data.getCounter();
    }
}
